/**
 * 
 */
package com.cqan.rest.serivce.impl;

import java.sql.SQLException;

import com.cqan.dao.UserDao;
import com.cqan.po.User;
import com.cqan.rest.service.TestRest;

/**
 * @author wuhui
 *
 * 上午10:39:45
 */

public class TestServiceRest implements TestRest {

private UserDao userDao;
	@Override
	public User getUser() throws SQLException {
		User user = new User();
		user.setId("1111");
		user.setUsername("admin");
		return userDao.getUserList().get(1);
	}
	
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	
}
